{% if commits %}
    {% for branch, branch_commits in commits.items %}
        <p class="repo-message">
            <i class="fa fa-quote-left"></i>
            {% if branch_commits|length == 0 %}
                This repository has no commits yet.
            {% elif branch_commits|length == 1 %}
                Branch "{{ branch }}", has 1 commit
            {% else %}
                Branch "{{ branch }}", has {{ branch_commits|length }} commits
            {% endif %}
             <i class="fa fa-quote-right"></i>
        </p>
        <ul class="branch-commits">
        {% for commit in branch_commits %}
            <li class="yellow-color">
                {% if commit.get_committer_name %}
                    > {{ commit.get_committer_name }} committed {{ commit.get_sha1_hash }}, <span>{{ commit.get_committer_date }}</span>
                {% else %}
                    > Someone committed {{ commit.get_sha1_hash }}, <span>{{ commit.get_committer_date }}</span>
                {% endif %}
            </li>
        {% endfor %}
        </ul>
    {% endfor %}
{% else %}
    {% include 'base/repo-no-commits.html' %}
{% endif %}
